from flask  import Flask,render_template

app = Flask(__name__)

@app.route('/')
def Index():
    context = {
        'username':'Jacky Yuan',
        'age': 27,
        'country': 'china',
        'childrens': {
            'name': 'abc',
            'height': 180
        }
    }
    # return render_template('index.html',age=27)
    return render_template('index.html',context=context)
    # return render_template('index.html',**context)


if __name__ == "__main__":
    app.run(debug=True,host='0.0.0.0')
